package Java学习.面向对象.静态方法;

public class StudentText {
    public static void main(String[] args) {
        Student.teacherName ="hh";
        //创建第一个学生对象
        Student stu1=new Student();
        stu1.setName("张三");
        stu1.setAge(23);
        stu1.setGender("男");

        stu1.study();
        stu1.show();
        //创建第二个学生
        Student stu2=new Student();
        stu2.setName("李四");
        stu2.setAge(24);
        stu2.study();
        stu2.show();
    }
}
